﻿﻿﻿{extends file="layout.tpl"}
{block name="title"}Change password{/block}
{block name="script"} 
        $(document).ready(function () {
            setupTinyMCE();
            setupProgressbar('progress-bar');
            setDatePicker('date-picker');
            setupDialogBox('dialog', 'opener');
            $('input[type="checkbox"]').fancybutton();
            $('input[type="radio"]').fancybutton();
				$( '#frmChangePwd').validate({
					rules: {
					curpwd: {
						
						required: true
					},
					newpwd: {
						minlength:5,
						required: true
					},
					repwd: {
							equalTo: "#newpwd"
							
					}
				},
				messages: {
					curpwd: {
						
						required: "##EM_CURPASSWORD##"
					},
				
					 newpwd: {
						minlength:"##EM_MINLENGTH_PASSWORD##",
						required: "##EM_NEWPASSWORD_IS_REQUIRED##"
					},
					repwd: {
							equalTo: "##EM_CONFIRM_PASSWORD##"
							
					}
				}
			});
        });
		
    {/block}
        {block name="content"}
        <div class="grid_12">
            <div class="box round first center" style="width:50%">
                <h2>
                    #NG_CHANGEPASSWORD#</h2>
                <div class="block ">
          <div class="message error" style="display:{$is_display_error|default:'none'};">{$error_message|default:''}</div>	
                    <form id="frmChangePwd" name="frmChangePwd" action="changepassword.php" method="post">
                    <table class="form">
                        <tr>
                            <td>
                                <label>
                                   ##NG_CURPASSWORD##</label>
                            </td>
                            <td>
                                <input type="password" class="mini" id="curpwd" name="curpwd"/>
                               
                            </td>
                        </tr>
						<tr>
                            <td>
                                <label>
                                    ##NG_NEWPASSWORD##</label>
                            </td>
                            <td>
                                <input type="password" class="mini" id="newpwd" name="newpwd"/>
                               
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label>
                                    ##NG_CONFIRM_PASSWORD##</label>
                            </td>
                            <td>
                              <input type="password" class="mini" id="repwd" name="repwd"/>
                              
                            </td>
                        </tr>
                                             
						<tr>
								<td colspan="2" align="center">
								<input type="submit" class="btn btn-blue" value="##NG_CHANGEPASSWORD##"/>
								<input type="hidden" name="submit" id="submit" />
								<input type="hidden" name="resetcode" id="resetcode" value="{$resetcode}"/>
								</td>
						</tr>                   
                    </table>
                    </form>
                </div>
            </div>
        </div>
  {/block}
